package View;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.GroupLayout.Alignment;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 * 
 * @author Nhóm java lớp PNV2T - Nguyễn Thị Lệ Đài - Nguyễn Chí Hướng
 * 
 */
public class GioiThieu extends javax.swing.JDialog {

	/** Creates new form About */
	public GioiThieu(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		setIconImage(Toolkit.getDefaultToolkit().getImage(
				GioiThieu.class.getResource("/Icon/QLSV.jpg")));
		setResizable(false);
		try {
			UIManager
					.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch (UnsupportedLookAndFeelException ex) {
			ex.printStackTrace();
		} catch (IllegalAccessException ex) {
			ex.printStackTrace();
		} catch (InstantiationException ex) {
			ex.printStackTrace();
		} catch (ClassNotFoundException ex) {
			ex.printStackTrace();
		}
		initComponents();
		setLocation(450, 250);
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	// <editor-fold defaultstate="collapsed"
	// desc=" Generated Code ">//GEN-BEGIN:initComponents
	private void initComponents() {
		jPanel1 = new javax.swing.JPanel();
		jLabel1 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jSeparator1 = new javax.swing.JSeparator();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setTitle("Nhóm phát triển");
		jPanel1.setBackground(new java.awt.Color(227, 239, 249));
		jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 17));
		jLabel1.setForeground(new java.awt.Color(255, 51, 51));
		jLabel1.setText("Phần mềm quản lý sinh viên!");

		jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 14));
		jLabel3.setText("Thành viên:");

		jLabel4.setFont(new java.awt.Font("Times New Roman", 0, 13));
		jLabel4.setText("Nguyễn Thị Lệ Đài");

		jLabel7.setFont(new java.awt.Font("Times New Roman", 0, 13));
		jLabel7.setText("Nguyễn Chí Hướng");

		jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(
				"/Icon/Account.png")));

		JLabel lblLptdsna = new JLabel("Lớp 11TDSNA - 4/2013");
		lblLptdsna.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 17));
		lblLptdsna.setHorizontalAlignment(SwingConstants.LEFT);

		javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(
				jPanel1);
		jPanel1Layout
				.setHorizontalGroup(jPanel1Layout
						.createParallelGroup(Alignment.LEADING)
						.addGroup(
								jPanel1Layout
										.createSequentialGroup()
										.addGroup(
												jPanel1Layout
														.createParallelGroup(
																Alignment.LEADING)
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jLabel2,
																				GroupLayout.PREFERRED_SIZE,
																				60,
																				GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel1))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addComponent(
																				jSeparator1,
																				GroupLayout.DEFAULT_SIZE,
																				293,
																				Short.MAX_VALUE))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addGap(28)
																		.addComponent(
																				jLabel3,
																				GroupLayout.PREFERRED_SIZE,
																				83,
																				GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanel1Layout
																		.createSequentialGroup()
																		.addGap(74)
																		.addGroup(
																				jPanel1Layout
																						.createParallelGroup(
																								Alignment.LEADING)
																						.addComponent(
																								jLabel7)
																						.addComponent(
																								jLabel4)))
														.addGroup(
																Alignment.TRAILING,
																jPanel1Layout
																		.createSequentialGroup()
																		.addContainerGap(
																				103,
																				Short.MAX_VALUE)
																		.addComponent(
																				lblLptdsna,
																				GroupLayout.PREFERRED_SIZE,
																				210,
																				GroupLayout.PREFERRED_SIZE)))
										.addContainerGap()));
		jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(
				Alignment.LEADING).addGroup(
				jPanel1Layout
						.createSequentialGroup()
						.addContainerGap()
						.addGroup(
								jPanel1Layout
										.createParallelGroup(
												Alignment.TRAILING, false)
										.addComponent(jLabel2,
												Alignment.LEADING,
												GroupLayout.DEFAULT_SIZE,
												GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addComponent(jLabel1,
												Alignment.LEADING,
												GroupLayout.DEFAULT_SIZE, 39,
												Short.MAX_VALUE))
						.addPreferredGap(ComponentPlacement.RELATED)
						.addComponent(jSeparator1, GroupLayout.PREFERRED_SIZE,
								10, GroupLayout.PREFERRED_SIZE)
						.addPreferredGap(ComponentPlacement.RELATED)
						.addComponent(jLabel3)
						.addPreferredGap(ComponentPlacement.RELATED)
						.addComponent(jLabel7)
						.addPreferredGap(ComponentPlacement.RELATED)
						.addComponent(jLabel4)
						.addPreferredGap(ComponentPlacement.UNRELATED)
						.addComponent(lblLptdsna, GroupLayout.PREFERRED_SIZE,
								29, GroupLayout.PREFERRED_SIZE)
						.addContainerGap(GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));
		jPanel1.setLayout(jPanel1Layout);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
				getContentPane());
		layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)
				.addComponent(jPanel1, GroupLayout.DEFAULT_SIZE, 323,
						Short.MAX_VALUE));
		layout.setVerticalGroup(layout.createParallelGroup(Alignment.LEADING)
				.addComponent(jPanel1, GroupLayout.DEFAULT_SIZE, 191,
						Short.MAX_VALUE));
		getContentPane().setLayout(layout);
		pack();
		addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent we) {
				close();
			}
		});
	}// </editor-fold>//GEN-END:initComponents

	protected void close() {
		this.dispose();
		QuanLy ql = new QuanLy(QuanLy.UserName, QuanLy.PassWord);
		ql.setVisible(true);
	}

	/**
	 * @param args
	 *            the command line arguments
	 */

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JLabel jLabel1;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JPanel jPanel1;
	private javax.swing.JSeparator jSeparator1;
}
